package com.miaoquan.mqapitbk.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Fa
 * @date 2020-03-29 18:57
 */
@Data
@ConfigurationProperties(prefix = "tbk")
public class TbkProperties {

    /**
     * 淘宝客请求url
     */
    private String url;
    /**
     * 淘宝客推广位pid
     */
    private String pid;
    /**
     * 淘宝客app证书
     */
    private TbkProperties.AppCert appCert;

    @Data
    public static class AppCert {
        private String appKey;
        private String appSecret;
    }

}
